﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FunctionInputs.ascx.cs"
    Inherits="secure_zk_PGB_Assignment_AddIB_FunctionInputs" %>
<%@ Register Assembly="Infragistics2.WebUI.WebDateChooser.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebSchedule" TagPrefix="igsch" %>
<table id="funcinputfields">
    <tr>
        <td>
            Functie
        </td>
        <td colspan="3">
            <asp:DropDownList ID="ddl_Functie" runat="server" DataValueField="Functie" AutoPostBack="true"
                OnSelectedIndexChanged="ddl_Functie_SelectedIndexChanged">
                <asp:ListItem Text="<null>" Value="NULL" Selected="true"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="funcstartdatetd">
            Ingangsdatum
        </td>
        <td>
            <igsch:WebDateChooser ID="WDC_Ingangsdatum" runat="server" EnableAppStyling="True"
                NullDateLabel="" NullValueRepresentation="Null" StyleSetName="ElectricBlue"
                CalendarLayout-DropDownYearsNumber="300">
            </igsch:WebDateChooser>
        </td>
        <td>
            Eind datum
        </td>
        <td>
            <igsch:WebDateChooser ID="WDC_Endiedatum" runat="server" EnableAppStyling="True"
                NullDateLabel="" NullValueRepresentation="Null" StyleSetName="ElectricBlue"
                CalendarLayout-DropDownYearsNumber="300">
            </igsch:WebDateChooser>
        </td>
    </tr>
    <tr>
        <td id="vldStartdate" colspan="2">
            <asp:CustomValidator ID="cstV_Ingangsdatum" runat="server" ErrorMessage="" Display="Dynamic"
                ControlToValidate="WDC_Ingangsdatum" ValidationGroup="mainFunc" OnServerValidate="cstV_Ingangsdatum_ServerValidate"></asp:CustomValidator>
            <asp:RequiredFieldValidator ID="RFV_Ingangsdatum" runat="server" Display="Dynamic"
                ValidationGroup="secondFunc" ControlToValidate="WDC_Ingangsdatum" ErrorMessage="Ingangsdatum is verplicht"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CV_FunctionsDate" runat="server" Display="Dynamic" Type="Date"
                ControlToCompare="WDC_Ingangsdatum" ControlToValidate="WDC_Endiedatum" Operator="GreaterThanEqual"
                ValidationGroup="secondFunc" ErrorMessage="De einddatum mag niet voor de begindatum liggen"></asp:CompareValidator>
        </td>
        <td id="vldEndate" colspan="2">
            <asp:RequiredFieldValidator ID="RFV_Endiedatum" runat="server" Display="Dynamic"
                ValidationGroup="secondFunc" ControlToValidate="WDC_Endiedatum" ErrorMessage="Endiedatum is verplicht"></asp:RequiredFieldValidator>
            <asp:CustomValidator ID="cstV_Endiedatum" runat="server" ErrorMessage="" Display="Dynamic"
                ValidationGroup="secondFunc" ControlToValidate="WDC_Endiedatum" OnServerValidate="cstV_Endiedatum_ServerValidate"></asp:CustomValidator>
        </td>
    </tr>
    <tr>
        <td>
            Activiteit
        </td>
        <td>
            <asp:DropDownList ID="ddl_Activiteit" runat="server" DataValueField="Activiteit"
                CssClass="step4Control">
                <asp:ListItem Text="<null>" Value="NULL" Selected="true"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            Klasse
        </td>
        <td>
            <asp:DropDownList ID="ddl_Klasse" runat="server" DataValueField="Klasse" CssClass="step4Control"
                AutoPostBack="true" OnSelectedIndexChanged="ddl_Klasse_SelectedIndexChanged">
                <asp:ListItem Text="<null>" Value="NULL" Selected="true"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="funcclasstd">
            Leveringsvorm
        </td>
        <td>
            <asp:DropDownList ID="ddl_IndicationType" runat="server" CssClass="step4Control">
                <asp:ListItem Selected="True" Text="PGB" Value="2"></asp:ListItem>
                <asp:ListItem Text="ZIN" Value="4"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="funcclasstd">
            Aantal(Additioneel)
        </td>
        <td>
            <asp:TextBox ID="txt_Number" runat="server" Width="50px" MaxLength="2"></asp:TextBox>
            <asp:DropDownList ID="ddl_timeUnit" runat="server" DataValueField="Tijdseenheid">
                <asp:ListItem Text="Uren" Value="04" Selected="True"></asp:ListItem>
                <asp:ListItem Text="Dagdelen" Value="13"></asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RFV_number" runat="server" Enabled="false" ControlToValidate="txt_Number"
                ErrorMessage="Dit is een verplicht veld" Display="Dynamic" ValidationGroup="secondFunc"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="REV_number" Display="Dynamic" runat="server"
                ControlToValidate="txt_Number" ErrorMessage="Dit is een numeriek veld. " ValidationExpression="^[1-9]\d*$"
                Enabled="false" ValidationGroup="secondFunc"></asp:RegularExpressionValidator>
        </td>
    </tr>
</table>
<div style="text-align: right;">
    <asp:Button ID="btn_AddFunc" runat="server" CausesValidation="true" ValidationGroup="secondFunc"
        Text="Toevogen" OnClick="btn_AddFunc_Click" />
    <asp:Button ID="btn_UpdateFunc" runat="server" CausesValidation="true" ValidationGroup="secondFunc"
        Text="Update" OnClick="btn_UpdateFunc_Click" Enabled="false" />
</div>
